<?
	require "lib.php";
	
	if($_GET["bid"]) {
		$query = sprintf(file_get_contents("board_create.sql"), $_GET["bid"]);
		mysql_query($query, $db_conn);
		$query = "insert into board_info (name) values ('".$_GET["bid"]."')";
		mysql_query($query, $db_conn);
	}
	else {
		$query = file_get_contents("comment_create.sql");
		mysql_query($query, $db_conn);
		$query = file_get_contents("member_create.sql");
		mysql_query($query, $db_conn);
		$query = file_get_contents("board_info_create.sql");
		mysql_query($query, $db_conn);
	}
?>